import Vue from 'vue'
import Router from 'vue-router'
import TakeOut from '../page/TakeOut'
import Find from '../page/Find'
import Shop from '../page/Shop'
import ShopDetial from '../page/ShopDetial'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',component:TakeOut},
    {path:'/find',component:Find},
    {path:'/home',component:TakeOut},
    {path:'/home/:id',component:Shop},
    {path:'/shop',component:Shop},
    {path:'/home/shop/:id',component:ShopDetial},
  ]
})
